package cn.com.dcsgo.service;

import cn.com.dcsgo.model.product.AttrGroup;
import cn.com.dcsgo.vo.product.AttrGroupQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 属性分组 服务类
 * </p>
 *
 * @author Dcsgo
 * @since 2025-04-07
 */
public interface AttrGroupService extends IService<AttrGroup> {

    /**
     * 条件分页查询
     *
     * @param pageParam        pageParam
     * @param attrGroupQueryVo attrGroupQueryVo
     * @return IPage->AttrGroup
     */
    IPage<AttrGroup> selectPage(Page<AttrGroup> pageParam, AttrGroupQueryVo attrGroupQueryVo);

    /**
     * 查询所有商品属性分组，id降序
     * @return List->AttrGroup
     */
    List<AttrGroup> listOrderById();
}
